# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-input-synaptics
pkgver=1.9.1
pkgrel=1
pkgdesc="X.org synaptics input driver"
url="https://www.x.org"
arch="all"
license="MIT"
subpackages="$pkgname-doc $pkgname-dev"
depends=
makedepends="libxkbfile-dev xorg-server-dev libxi-dev libxrandr-dev
	mtdev-dev libxtst-dev libevdev-dev"
source="https://www.x.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2
	time64.patch"

builddir="$srcdir/$pkgname-$pkgver"
build() {
	cd "$builddir"
	export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="978eddd456aa7361047bc3d72e5127b24b13de29b0dddb6a0acc9f9da93931baa2b22fb5d1e6be164f629a11e5d97d753b835426435396b45b1af5eb8d546c3f  xf86-input-synaptics-1.9.1.tar.bz2
8ad3cea3739f129643e7727dd1046f126242e5e3a5b295e088790eccb2fb8407baff5309e8d4325bf54114ae9fa47db3b460b46a5cbe57711086ebd4d391ef86  time64.patch"
